﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Week1.helper
{
    public static class PathHelper
    {
        

        /// <summary>
        /// 
        /// </summary>
        /// <param name="yCoordinate"></param>
        /// <returns></returns>
        static public float getX(float angle, float fRadius)
        {
            return (float) ((double)fRadius * Math.Cos((double)angle * Math.PI / 180));
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="xCoordinate"></param>
        /// <returns></returns>
        static public float getY(float angle, float fRadius)
        {
            return (float)((double)fRadius * Math.Sin((double)angle * Math.PI / 180));
        }



    }


}
